package org.insia.smartposse.metier;

import java.io.Serializable;

import org.insia.smartposse.metier.webservice.LightFreelancePortfolio;

/**
 * Business class for a freelance's portfolio.
 * 
 * @author sok hout
 *
 */
public class FreelancePortfolio 
implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -9065073044813999017L;
	private long _id = -1L;
	private Freelance _freelance;
	private String _description;
	private String _url;
	
	/**
	 * Empty constructor.
	 *
	 */
	public FreelancePortfolio() {
	}
	
	/**
	 * Getter for the description.
	 * @return the description.
	 */
	public String getDescription() {
		return _description;
	}
	
	/**
	 * Setter for the description.
	 * @param description the description to set.
	 */
	public void setDescription(String description) {
		this._description = description;
	}
	
	/**
	 * Getter for the freelance.
	 * @return the freelance.
	 */
	public Freelance getFreelance() {
		return _freelance;
	}
	
	/**
	 * Setter for the freelance.
	 * @param freelance the freelance to set.
	 */
	public void setFreelance(Freelance freelance) {
		this._freelance = freelance;
	}
	
	/**
	 * Getter for the id.
	 * @return the id.
	 */
	public long getId() {
		return _id;
	}
	
	/**
	 * Setter for the id.
	 * @param id the id to set.
	 */
	public void setId(long id) {
		this._id = id;
	}
	
	/**
	 * Getter for the url.
	 * @return the url.
	 */
	public String getUrl() {
		return _url;
	}
	
	/**
	 * Setter for the url.
	 * @param url the url to set.
	 */
	public void setUrl(String url) {
		this._url = url;
	}

	/**
	 * 
	 * @return lcatet the webservice FreelancePortfolio representation
	 */
	public LightFreelancePortfolio setLight() {
		LightFreelancePortfolio lfreePortfolio = new LightFreelancePortfolio(this);
		return lfreePortfolio;
	}
	
}
